<?php
namespace Client\Model;
use Think\Model\ViewModel;
class PublishViewModel extends ViewModel{
	public $viewFields = array(
			'Publish' 	 =>	array('id','content','ctime','time','browse_times','discuss_times','image','related_destination'=>'scenic_id','address','tag','uid','_type'=>'LEFT'),
			'Account'=> array('headimgurl','nickname','sex','birthday','signature','_on'=>'Publish.uid=Account.id','_type'=>'LEFT'),
			'Scenic'=> array('name'=>'scenic_name','_on'=>'Publish.related_destination=Scenic.id'),
	);
}